from base import *


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        # 'NAME': 'test_pts',                      # Or path to database file if using sqlite3.
        'NAME': 'dev_db_apg',#'pts_37','moki_pts',#
        # The following settings are not used with sqlite3:
        'USER': 'dev_db_apg',
        'PASSWORD': 'dev_db_apg',
        'HOST': '127.0.0.1',                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
        'PORT': '3306',                      # Set to empty string for default.
    }
}

ROUT_MEDIA = False

# REDIS={
    # 'host':'localhost',
    # 'port':'6379',
    # 'db':'7'
# }

PS_DOMAIN='http://ps.stm.com'
PTS_DOMAIN='http://pts.stm.com'
APG_DOMAIN='apg-dev.stm.com'

ALLOW_DEPLOY= False

SUB_DOC='/mnt/APG_NETWORK_DRIVE'   # media_url mount path
GC_SDK='/home/develop/google-cloud-sdk/bin'

from datetime import timedelta

CELERYBEAT_SCHEDULE = {
    'add-every-30-seconds': {
        'task': 'studio.tasks.auto_deploy_with_celery',
        'schedule': timedelta(seconds=30*60),
        'args': (),
    },
}


